//
//  THJHjbUserCell.m
//  THJXHW
//
//  Created by 河南德艺 on 2017/11/22.
//  Copyright © 2017年 河南德艺. All rights reserved.
//

#import "THJHjbUserCell.h"

@implementation THJHjbUserCell
- (void)awakeFromNib{
    [super awakeFromNib];
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated{
    [super setSelected:selected animated:animated];
}
-(void)getData{
    NSString * mobile = [RSA encryptString:[THJTools getMobile] publicKey:RSA_PubKey];
    [THJNetWork postNetDataFromUrl:@"http://p.thjb.net/thjblink/appdata.php?action=hjb_dj" parameters:@{@"mobile":mobile,@"type":@"ios"} callback:^(NSDictionary *  receiveData, NSError *error) {
        NSLog(@"出金--%@",receiveData);
        if([receiveData[@"status"] isEqual:@"success"]){
            NSLog(@"money-%@",[RSA decryptString:receiveData[@"data"][@"money"] publicKey:RSA_PubKey]);
            NSLog(@"ymoney-%@",[RSA decryptString:receiveData[@"data"][@"yMoney"] publicKey:RSA_PubKey]);
            NSLog(@"nmoney-%@",[RSA decryptString:receiveData[@"data"][@"nMoney"] publicKey:RSA_PubKey]);
            self.lab2.text = [RSA decryptString:receiveData[@"data"][@"nMoney"] publicKey:RSA_PubKey];
            self.lab1.text = [RSA decryptString:receiveData[@"data"][@"yMoney"] publicKey:RSA_PubKey];
            self.lab3.text = [RSA decryptString:receiveData[@"data"][@"money"] publicKey:RSA_PubKey];
        }
    }];
}
@end
